package com.amado.course43awt;

import java.awt.*;
public class SuperRabbit extends Frame
{
	SuperRabbit(String name)
	{
		super(name);
		setLayout(new BorderLayout ());
		Panel pUp = new Panel();
		Panel pCenter = new Panel();
		Panel pRight = new Panel();
		Panel pDown = new Panel();
		Panel pDownCenter = new Panel();
		Panel pLeft = new Panel();
		Panel pUps = new Panel();
		Panel pCenters = new Panel();
		Panel pRights = new Panel();
		Panel pDowns = new Panel();

		add(pUp,BorderLayout.NORTH);
		add(pCenter,BorderLayout.CENTER);
		add(pRight,BorderLayout.WEST);
		add(pDowns,BorderLayout.SOUTH);
		pUp.setLayout(new GridLayout(3,5));
		pUp.add(new Label("Super Rabbit"));
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Label("超级兔子"));
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Label("上网精灵"));
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Panel());

		pRight.setLayout(new GridLayout(11,2));
		pRight.add(new Label("IE  保护",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("综合设置",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("安全防护",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("IE    广告",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("IE    免疫",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("IE    加强",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("IE    选项",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("网站过滤",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("上网条件",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("软件设置",Label.CENTER));
		pRight.add(new Panel());
		pRight.add(new Label("选     项",Label.CENTER));
		
		pDowns.setLayout(new BorderLayout());
		pDowns.add(new Panel(),BorderLayout.EAST);
		pDowns.add(pDown,BorderLayout.CENTER);
		pDown.setLayout(new GridLayout(3,6,20,1));
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Button("确定"));
		pDown.add(new Button("取消"));
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		pDown.add(new Panel());
		

		pCenter.setLayout(new BorderLayout(2,2));
		pCenter.add(pLeft,BorderLayout.EAST);
		pCenter.add(pUps,BorderLayout.NORTH);
		pCenter.add(pCenters,BorderLayout.CENTER);
		pCenter.add(pRights,BorderLayout.WEST);
		pCenter.add(pDowns,BorderLayout.SOUTH);
		
		pUps.setLayout(new GridLayout(3,1));
		pUps.add(new Panel());
		pUps.add(new Label("综合设置"));
		pUps.add(new Panel());

		Choice cho=new Choice();
		cho.add("about : blank                                ");
		pCenters.setLayout(new GridLayout(14,1));
		pCenters.add(new Label("锁定主页"));
		pCenters.add(cho);
		pCenters.setLayout(new BorderLayout());
		Panel p1=new Panel();
		Panel p2=new Panel();
		pCenters.add(p1,BorderLayout.EAST);
		pCenters.add(p2,BorderLayout.CENTER);
		
		p1.setLayout(new GridLayout(14,1));
		p1.add(new Label("项目详情"));
		p1.add(new Panel());
		p1.add(new Label("项目表为软件的"));
		p1.add(new Label("主要设置功能"));
		p1.add(new Label("项目详情，每一"));
		p1.add(new Label("个人在城村克格"));
		p1.add(new Label("项在在工工在地"));
		p1.add(new Label("dasfd  dsfds f"));
		
		p2.setLayout(new GridLayout(10,1));
		p2.add(new Label("禁止恶意网站修改IE"));
		p2.add(new Panel());
		p2.add(new Label("禁止广告窗中和平共处"));
		p2.add(new Panel());
		p2.add(new Label("禁止 IE 插件"));
		p2.add(new Panel());
		p2.add(new Label("禁止浏览窗口"));
		p2.add(new Panel());
		p2.add(new Label("禁止浏览黄色网站"));
		p2.add(new Panel());
	//	p1.setBackground(new Color(87,89,200));
//		pUps.setBackground(new Color(90,190,200));
		pUp.setBackground(new Color(100,200,110));
		pCenter.setBackground(new Color(100,150,150));
		pRight.setBackground(new Color(120,40,200));
		pDowns.setBackground(new Color(140,100,140));
		setBackground(Color.WHITE);
		setBounds(200,100,600,500);
		setVisible(true);
		
	}
	public static void main(String[] args) 
	{
		new SuperRabbit("超级兔子上网精灵V8.1版");
	}
}
